package com.foreknow.dao;

import com.foreknow.model.Cart;

import java.util.List;

public interface CartDao {
    /**
     * 根据用户的编号和商家的编号（可选的）查询购物车信息？
     * SQl
     * SELECT * FROM cart c LEFT JOIN food f ON c.foodId = f.foodId
     * LEFT JOIN business b ON c.businessId = b.businessId
     * WHERE c.userId=8080 AND c.businessId = 10001
     *
     * @param cart
     * @return List<Cart>
     */
    public List<Object> listCart(Cart cart);
}
